<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/UI/Page/setup_home_page_pp.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_c78dc1806c68fd338fba226975244931.html">UI</a></li><li class="navelem"><a class="el" href="dir_25d44ec6257672254111041d2f097be1.html">Page</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">setup_home_page_pp.c</div></div>
</div><!--header-->
<div class="contents">
<a href="setup__home__page__pp_8c.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &quot;<a class="code" href="ui_8h.html">ui.h</a>&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;<a class="code" href="ui__event_8h.html">ui_event.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="comment">/* CE-48Pin 只有 2MB SDRAM, 但分辨率较低, 因此可以进行字体滚动显示 */</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#if (SWM34S_LCM_PCBV == SWM34SCE_PIN48_A2)</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="setup__home__page__pp_8c.html#a993f3b7cdcf0471770e3f28484122a2c">   30</a></span><span class="preprocessor">    #define FONT_SCROLL_TOP         1</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#else </span><span class="comment">/* 分辨率较高 or RGB888 时, 同时在一个页面内进行 视频播放、GIF轮播、字体滚动 三种效果时, 会引起闪烁、抖动 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor">    #define FONT_SCROLL_TOP         ( ( (LCD_HDOT &gt;= 800 &amp;&amp; LCD_VDOT &gt;= 480) || (LCD_FMT == LCD_ARGB888) ) ? 0 : 1 )</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">   39</a></span>lv_style_t <a class="code hl_variable" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__home__page__pp_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72">   48</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72">setup_home_page_pp</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>{</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    <span class="comment">// Write codes scr_home_tab_pp_imgbtn_home</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a> = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, NULL);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>                   <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(0, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)),</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>                   ICON_HB_H);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>                    ICON_HB_W,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>                    ICON_HB_H);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>, LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>, LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>, LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>, LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    <span class="comment">// Write codes scr_home_tab_pp_imgbtn_back</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a> = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, NULL);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>,</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>                   <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(2, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)),</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>                   ICON_HB_H);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>,</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>                    ICON_HB_W,</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>                    ICON_HB_H);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>, LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>, LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>, LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>, LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    <span class="comment">// 顶部标语</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a> = lv_label_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, NULL);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    lv_label_set_recolor(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>, <span class="keyword">true</span>); <span class="comment">// 允许重新着色</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>    lv_label_set_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>,</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>                      <span class="stringliteral">&quot;#daa520 广东省# #3CB371 佛山市# #0000ff 南海区桂城街道# #ff0000 广东华芯微特集成电路有限公司#&quot;</span>);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="preprocessor">    #if FONT_SCROLL_TOP</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    lv_label_set_long_mode(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>, LV_LABEL_LONG_SROLL_CIRC);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>    <span class="comment">// LV_LABEL_LONG_SROLL_CIRC - 保持大小并循环滚动文本</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    <span class="comment">// LV_LABEL_LONG_SROLL      - 保持大小并来回滚动文本</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>,</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>                    <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(2, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)) - <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(0, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)) - ICON_HB_W,</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>                    ICON_HB_H * 9 / 10);</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    lv_obj_align(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>, NULL, LV_ALIGN_IN_TOP_MID, 0,</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>                 (<a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(2, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)) - <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(0, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)) - ICON_HB_W &gt; lv_obj_get_width(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>))</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>                     ? ICON_HB_H</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>                     : 0); <span class="comment">// 相对父级顶部居中对齐</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>    <span class="comment">// 中间介绍文本</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a> = lv_label_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, NULL);</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>    lv_label_set_recolor(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, <span class="keyword">true</span>); <span class="comment">// 允许重新着色</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>    lv_label_set_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, <span class="stringliteral">&quot;#ff0000 3.3V供电系列:# SWM181 SWM190 SWM320 SWM341 \n&quot;</span>);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#ff0000 5V供电系列:# SWM201 SWM260 \n&quot;</span>); <span class="comment">// 在指定位置追加文本</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#0000ff M0内核系列:# SWM181 SWM190 SWM201 SWM260 \n&quot;</span>);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#0000ff M4内核系列:# SWM320 SWM341 \n&quot;</span>);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#daa520 TFT-LCD显示应用:# SWM19S SWM32S \n&quot;</span>);</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#daa520 SLCD显示应用:# SWM181 \n&quot;</span>);</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#20B2AA 电机应用:# SWM190 SWM201 \n&quot;</span>);</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>    lv_label_ins_text(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_POS_LAST, <span class="stringliteral">&quot;#20B2AA 大家电应用:# SWM181 SWM260&quot;</span>);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>    lv_obj_align(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, NULL, LV_ALIGN_CENTER, 0, 0); <span class="comment">// 设置相对位置</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>    <span class="comment">// Write codes scr_home_tab_pp_imgbtn_gif[]</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>    <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>) / <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i]); ++i)</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    {</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>        ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i] = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, NULL);</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>        lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i],</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>                       <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(i, 0, ICON_PP_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_PP_W, 3)),</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>                       LV_VER_RES_MAX - ICON_PP_H / 2*3);<span class="comment">//4 * 5);</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>        lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i],</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>                        ICON_PP_W,</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>                        ICON_PP_H);</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i], LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 13 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i], LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 13 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i], LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 13 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i], LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 13 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>    }</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    <span class="comment">// Write codes scr_home_tab_pp_btn_hide[]</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>) / <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>[i]); ++i)</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    {</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>[i] = lv_btn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, NULL);</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>        lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>[i],</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>                        (LV_HOR_RES_MAX - <a class="code hl_define" href="image__source_8h.html#a72e2736c8cdd913dd797ec89b5ade661">FLASH_VIDEO_AREA_W</a>) / 2,</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>                        lv_obj_get_height(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>));</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>        lv_obj_align(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>[i], NULL,</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>                     (i &amp; 0x1) ? LV_ALIGN_IN_RIGHT_MID : LV_ALIGN_IN_LEFT_MID,</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>                     0, 0); <span class="comment">// 相对父级内部 靠 右/左 居中对齐</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>    }</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>    <span class="comment">// Write codes scr_home_tab_pp_img_gif</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>    <span class="comment">// Set Style for scr page</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    <a class="code hl_function" href="setup__home__page__pp_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(ui);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>    <span class="comment">// Init events for scr page</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>    <a class="code hl_function" href="ui__event_8c.html#a4e9e72dc1392fbfa791b66d58f43cad0">events_init_home_page_pp</a>(ui);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    <span class="comment">// 暂未加载字库, 故先隐藏字体显示</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>    lv_obj_set_hidden(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>, <span class="keyword">true</span>);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>    lv_obj_set_hidden(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, <span class="keyword">true</span>);</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>}</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="setup__home__page__pp_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">  155</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__home__page__pp_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>{</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>    <span class="comment">// 添加图标样式</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">scr_home_tab_pp_imgbtn_home</a>, LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">scr_home_tab_pp_imgbtn_back</a>, LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>    <span class="comment">// Write codes scr_home_tab_pp_imgbtn_gif[]</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>    <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>) / <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i]); ++i)</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    {</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>        lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">scr_home_tab_pp_imgbtn_gif</a>[i], LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>    }</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>    <span class="comment">// 隐藏式按钮的样式</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>    <span class="keyword">static</span> lv_style_t Style_Hide;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>    lv_style_init(&amp;Style_Hide);</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>    lv_style_set_bg_opa(&amp;Style_Hide, LV_STATE_DEFAULT, LV_OPA_TRANSP);         <span class="comment">// 指定背景的不透明度</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>    lv_style_set_border_color(&amp;Style_Hide, LV_STATE_DEFAULT, LV_COLOR_BLACK);  <span class="comment">// 指定边框的颜色 -黑色 LV_COLOR_WHITE / 白色 LV_COLOR_BLACK</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>    lv_style_set_border_opa(&amp;Style_Hide, LV_STATE_DEFAULT, LV_OPA_TRANSP);     <span class="comment">// 指定边框的不透明度</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>    lv_style_set_border_width(&amp;Style_Hide, LV_STATE_DEFAULT, 0);               <span class="comment">// 设置边框的宽度</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>    lv_style_set_outline_color(&amp;Style_Hide, LV_STATE_DEFAULT, LV_COLOR_BLACK); <span class="comment">// 指定轮廓的颜色 -黑色 LV_COLOR_WHITE / 白色 LV_COLOR_BLACK</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>    lv_style_set_outline_opa(&amp;Style_Hide, LV_STATE_DEFAULT, LV_OPA_TRANSP);    <span class="comment">// 指定轮廓的不透明度</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>    lv_style_set_outline_width(&amp;Style_Hide, LV_STATE_DEFAULT, 0);              <span class="comment">// 设置轮廓的宽度</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>    lv_style_set_outline_pad(&amp;Style_Hide, LV_STATE_DEFAULT, 0);                <span class="comment">// 设置对象与轮廓之间的间距</span></div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>    <span class="comment">// Write codes scr_home_tab_pp_btn_hide[]</span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>    <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>) / <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>[i]); ++i)</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>    {</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>        lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">scr_home_tab_pp_btn_hide</a>[i], LV_BTN_PART_MAIN, &amp;Style_Hide);</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span>    }</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>    <span class="comment">// 中文字体样式</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>    <span class="comment">// static lv_style_t Style_Label_China;</span></div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>    lv_style_init(&amp;<a class="code hl_variable" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a>);</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>    <span class="comment">// lv_style_set_text_font(&amp;Style_Label_China, LV_STATE_DEFAULT, &amp;USER_FONT);     // 字体样式-中文字库</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>    lv_style_set_bg_opa(&amp;<a class="code hl_variable" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a>, LV_STATE_DEFAULT, LV_OPA_COVER);     <span class="comment">// 背景-完全不透明</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span>    lv_style_set_bg_color(&amp;<a class="code hl_variable" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a>, LV_STATE_DEFAULT, LV_COLOR_WHITE); <span class="comment">// 背景-白色</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>    <span class="comment">// 添加字体样式</span></div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">scr_home_tab_pp_label_top</a>, LV_LABEL_PART_MAIN, &amp;<a class="code hl_variable" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a>);</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">scr_home_tab_pp_label_mid</a>, LV_LABEL_PART_MAIN, &amp;<a class="code hl_variable" href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a>);</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>}</div>
<div class="ttc" id="aimage__source_8c_html_aad0609e68f74eb0a9760a3fc0f604794"><div class="ttname"><a href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a></div><div class="ttdeci">img_hash_t Image_Table[IMG_MAX_NUM]</div><div class="ttdoc">图片资源文件映射表</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8c_source.html#l00025">image_source.c:25</a></div></div>
<div class="ttc" id="aimage__source_8h_html_a5766095671f07f4d50bd8a45777ab29a"><div class="ttname"><a href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a></div><div class="ttdeci">#define ICON_IMG_START</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00045">image_source.h:45</a></div></div>
<div class="ttc" id="aimage__source_8h_html_a72e2736c8cdd913dd797ec89b5ade661"><div class="ttname"><a href="image__source_8h.html#a72e2736c8cdd913dd797ec89b5ade661">FLASH_VIDEO_AREA_W</a></div><div class="ttdeci">#define FLASH_VIDEO_AREA_W</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00124">image_source.h:124</a></div></div>
<div class="ttc" id="asetup__home__page__pp_8c_html_a2dc049611b8a6a5e649913c9ead4dc72"><div class="ttname"><a href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72">setup_home_page_pp</a></div><div class="ttdeci">void setup_home_page_pp(lv_ui *ui)</div><div class="ttdoc">创建 Picture 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__pp_8c_source.html#l00048">setup_home_page_pp.c:48</a></div></div>
<div class="ttc" id="asetup__home__page__pp_8c_html_ace6d825503d92b9fa25e9433e6a5e3e1"><div class="ttname"><a href="setup__home__page__pp_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a></div><div class="ttdeci">static void setup_style(lv_ui *ui)</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__pp_8c_source.html#l00155">setup_home_page_pp.c:155</a></div></div>
<div class="ttc" id="asetup__home__page__pp_8c_html_ae440cea5ee4ef31b9c85f0a82695a976"><div class="ttname"><a href="setup__home__page__pp_8c.html#ae440cea5ee4ef31b9c85f0a82695a976">Style_Label_China</a></div><div class="ttdeci">lv_style_t Style_Label_China</div><div class="ttdoc">中文字体样式</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__pp_8c_source.html#l00039">setup_home_page_pp.c:39</a></div></div>
<div class="ttc" id="astructimg__hash__t_html_a15a9da58fa9768c427dbd548764b2009"><div class="ttname"><a href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img_hash_t::img</a></div><div class="ttdeci">lv_img_dsc_t * img</div><div class="ttdoc">图片资源</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00092">image_source.h:92</a></div></div>
<div class="ttc" id="astructlv__ui_html"><div class="ttname"><a href="structlv__ui.html">lv_ui</a></div><div class="ttdoc">UI 布局设计</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00130">ui.h:131</a></div></div>
<div class="ttc" id="astructlv__ui_html_a0edc59258e461120114aeeb03cbfcd75"><div class="ttname"><a href="structlv__ui.html#a0edc59258e461120114aeeb03cbfcd75">lv_ui::scr_home_tab_pp_imgbtn_home</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp_imgbtn_home</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00163">ui.h:163</a></div></div>
<div class="ttc" id="astructlv__ui_html_a2d3a513fda102d9141670519454c81a9"><div class="ttname"><a href="structlv__ui.html#a2d3a513fda102d9141670519454c81a9">lv_ui::scr_home_tab_pp_label_top</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp_label_top</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00165">ui.h:165</a></div></div>
<div class="ttc" id="astructlv__ui_html_a88077d976d8bfcf927236bb8d644cc5c"><div class="ttname"><a href="structlv__ui.html#a88077d976d8bfcf927236bb8d644cc5c">lv_ui::scr_home_tab_pp_imgbtn_back</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp_imgbtn_back</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00164">ui.h:164</a></div></div>
<div class="ttc" id="astructlv__ui_html_a88442c9f64f866400a0f910222dcb1f5"><div class="ttname"><a href="structlv__ui.html#a88442c9f64f866400a0f910222dcb1f5">lv_ui::scr_home_tab_pp_imgbtn_gif</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp_imgbtn_gif[3]</div><div class="ttdoc">left - mid - right</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00167">ui.h:167</a></div></div>
<div class="ttc" id="astructlv__ui_html_ab1c24a3e65a60b7239551d6a97c61bda"><div class="ttname"><a href="structlv__ui.html#ab1c24a3e65a60b7239551d6a97c61bda">lv_ui::scr_home_tab_pp_btn_hide</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp_btn_hide[2]</div><div class="ttdoc">left - right</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00168">ui.h:168</a></div></div>
<div class="ttc" id="astructlv__ui_html_addab905bd39c1d1bef1e7244ecc42f05"><div class="ttname"><a href="structlv__ui.html#addab905bd39c1d1bef1e7244ecc42f05">lv_ui::scr_home_tab_pp_label_mid</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp_label_mid</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00166">ui.h:166</a></div></div>
<div class="ttc" id="astructlv__ui_html_aeb626e7fdb99044ec046970e1a323f54"><div class="ttname"><a href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">lv_ui::scr_home_tab_pp</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00162">ui.h:162</a></div></div>
<div class="ttc" id="aui_8c_html_ae198236d3c142466346a28ea4222e760"><div class="ttname"><a href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a></div><div class="ttdeci">lv_style_t Style_Common_Btn</div><div class="ttdoc">按钮图标全局统一样式</div><div class="ttdef"><b>Definition:</b> <a href="ui_8c_source.html#l00032">ui.c:32</a></div></div>
<div class="ttc" id="aui_8h_html"><div class="ttname"><a href="ui_8h.html">ui.h</a></div><div class="ttdoc">UI 页面布局</div></div>
<div class="ttc" id="aui_8h_html_a0f5436e65f0809b6db4215a2fa2ff4cb"><div class="ttname"><a href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a></div><div class="ttdeci">#define GET_X(i, s, w, offset)</div><div class="ttdoc">在[s, s + x]区间 : 按 offset 偏移对齐宽为 w 的 ICON =&gt; 得出对齐第 i 个 ICON 的绝对位置 - x轴</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00084">ui.h:84</a></div></div>
<div class="ttc" id="aui_8h_html_ac0a0ec2ce739f6d59caa4619cdd123f9"><div class="ttname"><a href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a></div><div class="ttdeci">#define GET_OFFSET_X(x, w, n)</div><div class="ttdoc">在[0, x]区间 : 对齐 n 个宽为 w 的 ICON =&gt; 均等取得每个 ICON 相对偏移 - x轴 [0 &lt;- (offset) -&gt; icon_w &lt;- (offset) -&gt; icon_w...</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00078">ui.h:78</a></div></div>
<div class="ttc" id="aui__event_8c_html_a4e9e72dc1392fbfa791b66d58f43cad0"><div class="ttname"><a href="ui__event_8c.html#a4e9e72dc1392fbfa791b66d58f43cad0">events_init_home_page_pp</a></div><div class="ttdeci">void events_init_home_page_pp(lv_ui *ui)</div><div class="ttdoc">主桌面 PP 页注册事件回调</div><div class="ttdef"><b>Definition:</b> <a href="ui__event_8c_source.html#l00779">ui_event.c:779</a></div></div>
<div class="ttc" id="aui__event_8h_html"><div class="ttname"><a href="ui__event_8h.html">ui_event.h</a></div><div class="ttdoc">UI 页面事件回调</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
